package com.mdd.common.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mdd.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
@Data
@TableName("order_pre_authorization_payment_record")
@ApiModel("预授款扣款记录实体")
public class PreAuthorizationPaymentRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "预授权记录")
    private String preAuthorizationId;
    @ApiModelProperty(value = "订单编号")
    private String orderId;

    @ApiModelProperty(value = "操作类型;操作类型：1、扣款")
    private String operateType;

    @ApiModelProperty(value = "扣除金额")
    private BigDecimal money;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "扣款账单编号")
    private String alipayNo;

    @ApiModelProperty(value = "状态:1、扣款成功 2、扣款失败 3、扣款尝试中")
    private String status;
}
